package frank.zou.study.fest;

import static org.fest.assertions.Assertions.*;

import org.testng.annotations.Test;

public class HelloFest {

	@Test
	public void testAsserThat_person() {
		Person person1 = new Person("frank", "zou", 30);
		Person person2 = new Person("frank", "zou", 20);
		assertThat(person1).isEqualTo(person2).isInstanceOf(Person.class)
				.isNotNull();
	}
	
	@Test
	public void testAsserThat_number() { 
		int x = 0; 
		assertThat(x).isGreaterThanOrEqualTo(-1);
	}
	
	@Test 
	public void testAssertThat_stringArray() { 
		String[] names = new String[] { "frank", "tianxiu" };
		assertThat(names).contains("frank");
	}
	
	@Test void testAssertThat_string() { 
		assertThat("frank").contains("fr").isSameAs("frank");
	}
}
